import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import QtGraphicalEffects 1.15

Item {
    property var cur_id

    Layout.fillWidth: true
    height: 120 // 跟 title_bar 保持一致
    z: 2

    Rectangle {
        id: title_bar
        anchors.fill: parent
        color: "steelblue"

        Label {
            anchors {
                left: parent.left
                bottom: parent.bottom
                leftMargin: 30
                bottomMargin: 15
            }
            font.pixelSize: 60
            color: "white"
            text: "锂电池阻抗测量管理平台"
        }

        MouseArea {
            anchors.fill: parent

            onClicked: function (mouse) {
                cur_id = 255
            }
        }
    }

    // 添加底部阴影
    DropShadow {
        anchors.fill: title_bar
        source: title_bar
        horizontalOffset: 0
        verticalOffset: 6
        radius: 12
        samples: 16
        color: "#55000000"
        transparentBorder: true
        z: 1
    }
}
